define(["jquery","layuiall","zTree","jqform","jq_request","helper"],function ($,layui,zTree,jqform,jq_request,helper) {
    var form = layui.form;
    controller = {
        index:function () {
            jqform.delete()
            form.on('checkbox(select-all)', function(data){

                if(data.elem.checked==true){
                    $("input[name='idList[]']").prop('checked',true)
                }else {
                    $("input[name='idList[]']").prop('checked',false)
                }
                form.render('checkbox');
            });
        },
    }
    return controller;
})